      final rawResponse = _response.data;
      {{#isResponseFile}}
      _responseData = rawResponse == null ? null : rawResponse as {{{returnType}}};
      {{/isResponseFile}}
      {{^isResponseFile}}
      {{#returnSimpleType}}
      {{#returnTypeIsPrimitive}}
      _responseData = rawResponse == null ? null : rawResponse as {{{returnType}}};
      {{/returnTypeIsPrimitive}}
      {{^returnTypeIsPrimitive}}      
      _responseData = rawResponse == null ? null : _serializers.deserialize(
        rawResponse,
        specifiedType: const FullType({{{returnType}}}),
      ) as {{{returnType}}};
      {{/returnTypeIsPrimitive}}
      {{/returnSimpleType}}
      {{^returnSimpleType}}      
      _responseData = rawResponse == null ? null : _serializers.deserialize(
        rawResponse,
        specifiedType: const FullType(Built{{#isArray}}{{#uniqueItems}}Set{{/uniqueItems}}{{^uniqueItems}}List{{/uniqueItems}}{{/isArray}}{{#isMap}}Map{{/isMap}}, [{{#isMap}}FullType(String), {{/isMap}}FullType({{{returnBaseType}}})]),
      ) as {{{returnType}}};
      {{/returnSimpleType}}
      {{/isResponseFile}}